import request from '@/utils/request'

export const versionApi = {

    getWorkflowByBusinessId(businessId) {
        return request({
            url: `/api/workflow/version`,
            method: 'get',
            params: {businessId: businessId}
        })
    },

    getWorkflowVersionByWorkflowIdId(versionId) {
        return request({
            url: `/api/workflow/versionById`,
            method: 'get',
            params: {versionId: versionId}
        })
    }
}